package com.yang.moyu.meta.system.service;

import com.yang.moyu.meta.system.domain.SysDepartment;

/**
 * Create by 10296 on 2021/12/16
 *
 * @Description:
 */
public interface SysDepartmentService {
    /**
     * 根据ID查询部门信息
     *
     * @param id
     * @return
     */
    SysDepartment getDepartmentById(String id);

    /**
     * 保存
     *
     * @param sysDepartment
     * @return
     * @throws Exception
     */
    boolean saveSysDepartment(SysDepartment sysDepartment) throws Exception;

    /**
     * 修改
     *
     * @param sysDepartment
     * @return
     * @throws Exception
     */
    boolean updateSysDepartment(SysDepartment sysDepartment) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteSysDepartment(Long id) throws Exception;


}

